An overlay effect is a screen effect row by row (see-through, brightness, blocks, wobble, stretch, sky color, tint, a shape) that moves, pulses or stands still, made in the Overlay Effects tab and played with overlay_start. A transition is one that hides a room change.
The screen is 160 rows of pixels, one on top of the other. The console can do a little something different on each row while it draws: let more or less of a see-through thing show, make the blocks bigger or smaller, push a picture sideways. An overlay effect is a recipe for that: for each effect you give tracks, and a track is one number for every row.
| Track | One number per row | Range |
|---|---|---|
| See-through | how much of what you marked see-through shows | 0 (none) to 16 (all of it) |
| Brightness | how far the row goes toward white (above 0) or black (below 0) | -16 to 16 |
| Blocks | how wide and how tall the blocks are (two numbers) | 0 (sharp) to 15 |
| Wobble | how many pixels the row is pushed sideways | -64 to 64 |
| Stretch | how many rows the picture is pushed down (up, below 0): squash it, stretch it, turn it upside down | -160 to 160 |
| Sky color | the color of the backdrop on that row (red, green, blue) | 0 to 31 each |
| Tint | the color of one color of the first background's palette on that row, three numbers like the sky | 0 to 31 each |
| Shape | for up to two shapes, where each starts and ends on every row. It says where See-through and Brightness apply: inside the shapes, or everywhere else |
An effect also says how its tracks move:
A pulse can make its shape grow, so a small shape swells until it covers the screen (the wipes).
Tick Play backwards to run a pulse the other way round. Pulses once: it starts at full strength, falls to nothing and is over. Pulses and stays: it starts at full strength, falls to nothing and stays there. Pulses, repeating: it falls from full to nothing, then jumps back to full. The box is grayed out when it would change nothing: for an effect that stands still, for Pulse reverse and for Fade back (both already go up and down), and a transition never plays backwards.
An overlay changes how the console treats what you already have. No effect uses a background layer of its own ("Uses no background layer"), so none of them uses one of the console's four. (The one exception is a box Area that cuts a Wobble or a Stretch: see "Only a part of the screen" below.)
| Track | What it reaches |
|---|---|
| See-through | what you marked see-through |
| Blocks | what you marked blocky |
| Wobble, Stretch | the first two backgrounds of the room: a room's own tiles first, then the ones made with background_create |
| Sky color | the backdrop color, wherever the picture does not cover it |
| Tint | the palette of the first of those backgrounds |
| Brightness | the backdrop color, a room's own tiles, the backgrounds marked see-through and the sprites marked see-through (sprite_see_through); a sprite you did not mark keeps its colors |
| Shape | nothing by itself: it says where See-through and Brightness apply |
The console can do see-through or brightness on a screen, never both, so one effect cannot have both tracks. A Brightness track goes toward black or toward white, not both. A shape needs a See-through or a Brightness track to shape, has two shapes at most, and an effect cannot ask the console for more than six row-by-row effects at once (each track is one, each shape is one, and a Wobble or a Stretch is one for each background it reaches).
A heat haze only above a campfire, a shake only inside a window, a dark patch around a lamp: tick Area in the Overlay Effects tab (under "How it moves") and choose a band of rows (the whole width of the screen, from a top row, so many rows tall) or a box (a left, a top, a width and a height). The effect then works only there. The numbers you drew on the graphs stay the rows of the screen; the Area only cuts them. In code, overlay_area puts the Area on a spot of the screen and overlay_area_follow keeps it on an object, wherever the camera goes.
An Area is the most expensive thing an effect can ask for, so use it sparingly. Every track of an effect with an Area is worked out again on every frame (even one that stands still), because the Area can move. A band costs nothing more than that. A box also takes one of the console's 2 rectangle windows for as long as the effect plays (the same two that background_clip and some transitions use), and a box that cuts a Wobble or a Stretch takes one background layer too, because the game draws a copy of the room's layer inside the box. A room has only 4 layers (2 with a zoomable background). The console cannot cut Blocks, Sky color and Tint sideways, so they use the rows of the box from edge to edge. The Overlay Effects tab says all this under the Area whenever it is on, and the Windows and BG layers gauges of the Budgets panel count it.
If a room has no window or no layer to spare, the Area does not stop the effect: it works on the rows of the box (the whole width), and the development log says why. A box cannot cut a Brightness that has a color (that fade changes the colors of the whole screen at once), and a transition covers the whole screen, so it has no Area.
A transition is an effect that hides a room change. It plays once, over an even number of frames; at the middle it has covered the screen completely, the room is swapped behind it, and it plays back to nothing. It has Brightness and a Shape (a shape that grows until it covers everything: all black, or all white), and the Overlay Effects tab says when it does not cover the screen. A transition's shape hides everything inside it, sprites too. Choose it where you choose a room's transition: in the room's settings, on a door, or in code: room_change_ext(room, nothing, 0, 0, ov_diamond_wipe).
Two speeds in one transition. By default both halves last the same: out until the screen is covered, then back. Tick Different speed after the room changes in the transition's settings and each half gets the frames of its own, Before the room changes and After the room changes. A transition can then close slowly over 60 frames and open again fast over 12, or the other way round. The two numbers need not be even and add up to the transition's length (at most 300 frames each). The preview plays both halves at their own speed, and a transition with one speed plays exactly as it always did.
Gbabel comes with ten. Effects: Lightning (a short white flash), Heat haze (a shimmer that keeps rolling down the screen), Teleport (blocks and a flash), Spotlight (everything dark but a circle that overlay_focus moves), Water line (the lower part of the screen ripples), Night falls (the light goes out slowly and stays out), Searchlight (a beam and a pool of light), Glitch (bands of the picture tear sideways and turn to blocks). Transitions: Diamond wipe and Star wipe. Add one to your game in the Overlay Effects tab and start it with overlay_start.
A text effect is made in the same tab, and plays on the words you draw: words that flash, shake, wave, bounce, spin or change color. Choose it with text_effect_start before the draw_text calls it should reach and end it with text_effect_stop; like font_set it stays chosen until you change it, so one line can have an effect while the next line, in the same font, does not.
Its tracks are Tint (the font's colors toward a color, through up to six colors, or toward a palette; a white Tint is a flash), Letters (nineteen looks that move, turn or resize the letters one by one: Wave, Shake, Swirl, Tornado, Circle loop, Bounce, Drop in, Scatter, Float, Sway, Jitter in, Spin, Pop, Heartbeat, Jelly, Typewriter, Elastic, Dominoes and Pendulum; texteffectstart says what each one does), Blocks, See-through, and Scale and Rotate (they grow and turn the whole line as one piece). A Letters track can wear up to three looks at once and give the letters a Letter size, and text_effect_strength and text_effect_speed change how strong and how fast an effect plays while the game runs. A track whose way of moving is Stands still is frozen; use Pulses, keeps going to keep a look moving. Gbabel comes with a ready-made one for each look, and also Rainbow, Flash, Fade in and Fade out, and eight made with Start after (a track can wait some frames before it begins): Hit!, Alarm, Glitch, Victory, Ghostly, Fiery, Slam in and Spin out. A console that cannot turn or resize letters grays out the ones that need it (Preferences > Module). Blocks and See-through have the same one-at-a-time limit a sprite effect has.
An effect does not have to be switched on and off. overlay_change, sprite_effect_change and text_effect_change change the effect that is playing into another one over so many frames: a calm wave turns into a tornado, a day tint turns into night, a frozen sprite thaws into a burning one. Give them nothing and the effect fades away to plain letters, a plain object or a plain screen, and then stops. With 0 frames the change happens at once, like a start or a stop.
While the change runs, both effects play on their own clocks and you see the two together: colors are mixed, amounts such as See-through, Brightness, Wobble, Blocks and Tint blend (a screen effect, row by row), letters take both effects' moves, and objects take both effects' sizes and turns. What cannot be mixed (a picture has only one Wobble, the screen has one block size, a Shape cannot be halfway to another) fades out in the first half of the change, and the new effect fades in during the second half. A change never needs more of the console's row-by-row effects than the bigger of the two effects needs. A cutscene's Dialogue text effect, Sprite Effect step and Start / Stop Screen Effect steps have a Change over (seconds) box that does the same.
A sprite effect is made in the same tab, but it plays on one object instead of the whole screen: a hit flash, a freeze tint, a dizzy wobble, a ghost, a teleport. Play it from the object's own event with sprite_effect_start, end it with sprite_effect_stop and ask sprite_effect_active.
Its tracks are Tint (the object's colors toward a color, through up to six colors one after the other as the effect gets stronger, or toward a palette, not both; a white Tint is a hit flash), Wobble, Distort, Blocks and See-through, and each one moves its own way. (Older effects that had a separate Flash are read as a Tint.) Gbabel comes with five: Hit flash, Freeze tint, Dizzy wobble, Teleport out and Ghost, and one for each of the newer looks of Wobble (Ripple, Flag, Wind, Boing, Twist, Interlace, Glitch tear, Slither) and Distort (Melt, Squash & stretch, Flip, TV off, Reflection, Sink, Rise, Shred, Bob); spriteeffectstart says what each one does.
The Game Boy Advance has one block size and one see-through level for the whole screen, so two objects cannot be blocky or see-through by different amounts at the same moment. Only one sprite effect with a Blocks or See-through track plays at a time. Tint, Wobble and Distort are private to the object.
A sprite effect or a text effect can also have a Shader: a glowing edge, a dissolve, a gleam of gold. Tick Shader in the effect's settings and pick one from the list. The game never plays a shader live: press Make a sprite from this effect and Gbabel works the shader out once and keeps the result as an ordinary animated sprite, which costs the console nothing to play. Starting the effect itself in the game does not show the shader, and the Problems list says so when a call plays an effect with a shader that is on.
Stacking shaders. An effect can wear up to 4 shaders at once, so their looks add up. Press + Add shader under the last one to put another below it (the button is grayed at 4; remove one to add another). Each shader is a section of its own with its own list and settings. The shaders apply from the top down, and each one works on the picture the one above it made, so a glow and then a dissolve is not the same as a dissolve and then a glow. To change the order, drag a shader by its name row up or down. The eye in a shader's name row switches that shader off without losing its settings (an effect whose shaders are all switched off has no shader at all), and Remove this shader takes it out; you can undo it.
A transition has a Shader section too, and it stacks the same way: + Add shader, the eye, Remove this shader and dragging the name row work as they do for a sprite effect. A transition's pictures are made with Make the pictures, and the cost is shown before anything is kept.